/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testingimpl.testmethodservice;

import entities.TestItem;
import testing.ITestMethod;
import testing.ITestMethodService;
import testing.TestingException;

/**
 *
 * @author ryuju
 */
public class TestMethodService implements ITestMethodService{

    @Override
    public ITestMethod getTestMethod(TestItem testItem) throws TestingException{
        // currently only diff..
        ITestMethod testMethod = null;
        /*
        if(testItem.getTestOpt().toUpperCase().equals("DIFF"))
        {
            testMethod = new TestMethodDiff();
        }
        else
        {
            throw new TestingException("Not supported test method");
        }
        * 
        */
        testMethod = new TestMethodDiff();
        
        return testMethod;
    }
    
}
